<template>
  <div class="box">
    <div class="top">
      <h3>患者</h3>
      <a href="">群发消息</a>
    </div>
    <hr />
    <form action="/">
      <van-search
        v-model="value"
        shape="round"
        placeholder="请输入患者相关信息"
        @search="onSearch"
      />
    </form>

  </div>
</template>

<script>
import Vue from "vue";
import { Search } from "vant";
Vue.use(Search);
export default {
  data() {
    return {
      value: "",
      list: [],
      loading: false,
      finished: false,
      refreshing: false,
    };
  },
  methods: {
    onSearch(val) {
      Toast(val);
    },
  },
};
</script>

<style lang="scss" scoped>
.box {
  .top {
    display: flex;
    justify-content: space-between;
    h3 {
      margin-left: 10px;
      margin-top: 5px;
      font-size: 25px;
    }
    a {
      margin-right: 10px;
      margin-top: 8px;
      font-size: 20px;
    }
  }
}
</style>
